Optimal. Leaf size=995 \[ \text{result too large to display} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 1.29131, antiderivative size = 995, normalized size of antiderivative = 1., number of steps used = 40, number of rules used = 16, integrand size = 34, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.471, Rules used = {2513, 2418, 2395, 36, 29, 31, 2394, 2315, 2393, 2391, 709, 800, 634, 618, 206, 628} \[ \frac{b n \log (x)}{a f}-\frac{d n \log (x)}{c f}+\frac{g \left (n \log (a+b x)-\log \left (e \left (\frac{a+b x}{c+d x}\right )^n\right )-n \log (c+d x)\right ) \log (x)}{f^2}-\frac{b n \log (a+b x)}{a f}-\frac{g n \log \left (-\frac{b x}{a}\right ) \log (a+b x)}{f^2}-\frac{n \log (a+b x)}{f x}+\frac{d n \log (c+d x)}{c f}+\frac{g n \log \left (-\frac{d x}{c}\right ) \log (c+d x)}{f^2}+\frac{n \log (c+d x)}{f x}+\frac{\left (g^2-2 f h\right ) \tanh ^{-1}\left (\frac{g+2 h x}{\sqrt{g^2-4 f h}}\right ) \left (n \log (a+b x)-\log \left (e \left (\frac{a+b x}{c+d x}\right )^n\right )-n \log (c+d x)\right )}{f^2 \sqrt{g^2-4 f h}}+\frac{n \log (a+b x)-\log \left (e \left (\frac{a+b x}{c+d x}\right )^n\right )-n \log (c+d x)}{f x}+\frac{\left (g+\frac{g^2-2 f h}{\sqrt{g^2-4 f h}}\right ) n \log (a+b x) \log \left (-\frac{b \left (g+2 h x-\sqrt{g^2-4 f h}\right )}{2 a h-b \left (g-\sqrt{g^2-4 f h}\right )}\right )}{2 f^2}-\frac{\left (g+\frac{g^2-2 f h}{\sqrt{g^2-4 f h}}\right ) n \log (c+d x) \log \left (-\frac{d \left (g+2 h x-\sqrt{g^2-4 f h}\right )}{2 c h-d \left (g-\sqrt{g^2-4 f h}\right )}\right )}{2 f^2}+\frac{\left (g-\frac{g^2-2 f h}{\sqrt{g^2-4 f h}}\right ) n \log (a+b x) \log \left (-\frac{b \left (g+2 h x+\sqrt{g^2-4 f h}\right )}{2 a h-b \left (g+\sqrt{g^2-4 f h}\right )}\right )}{2 f^2}-\frac{\left (g-\frac{g^2-2 f h}{\sqrt{g^2-4 f h}}\right ) n \log (c+d x) \log \left (-\frac{d \left (g+2 h x+\sqrt{g^2-4 f h}\right )}{2 c h-d \left (g+\sqrt{g^2-4 f h}\right )}\right )}{2 f^2}-\frac{g \left (n \log (a+b x)-\log \left (e \left (\frac{a+b x}{c+d x}\right )^n\right )-n \log (c+d x)\right ) \log \left (h x^2+g x+f\right )}{2 f^2}+\frac{\left (g+\frac{g^2-2 f h}{\sqrt{g^2-4 f h}}\right ) n \text{PolyLog}\left (2,\frac{2 h (a+b x)}{2 a h-b \left (g-\sqrt{g^2-4 f h}\right )}\right )}{2 f^2}+\frac{\left (g-\frac{g^2-2 f h}{\sqrt{g^2-4 f h}}\right ) n \text{PolyLog}\left (2,\frac{2 h (a+b x)}{2 a h-b \left (g+\sqrt{g^2-4 f h}\right )}\right )}{2 f^2}-\frac{g n \text{PolyLog}\left (2,\frac{b x}{a}+1\right )}{f^2}-\frac{\left (g+\frac{g^2-2 f h}{\sqrt{g^2-4 f h}}\right ) n \text{PolyLog}\left (2,\frac{2 h (c+d x)}{2 c h-d \left (g-\sqrt{g^2-4 f h}\right )}\right )}{2 f^2}-\frac{\left (g-\frac{g^2-2 f h}{\sqrt{g^2-4 f h}}\right ) n \text{PolyLog}\left (2,\frac{2 h (c+d x)}{2 c h-d \left (g+\sqrt{g^2-4 f h}\right )}\right )}{2 f^2}+\frac{g n \text{PolyLog}\left (2,\frac{d x}{c}+1\right )}{f^2} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 2513
Rule 2418
Rule 2395
Rule 36
Rule 29
Rule 31
Rule 2394
Rule 2315
Rule 2393
Rule 2391
Rule 709
Rule 800
Rule 634
Rule 618
Rule 206
Rule 628
Rubi steps
\begin{align*} \int \frac{\log \left (e \left (\frac{a+b x}{c+d x}\right )^n\right )}{x^2 \left (f+g x+h x^2\right )} \, dx &=n \int \frac{\log (a+b x)}{x^2 \left (f+g x+h x^2\right )} \, dx-n \int \frac{\log (c+d x)}{x^2 \left (f+g x+h x^2\right )} \, dx-\left (n \log (a+b x)-\log \left (e \left (\frac{a+b x}{c+d x}\right )^n\right )-n \log (c+d x)\right ) \int \frac{1}{x^2 \left (f+g x+h x^2\right )} \, dx\\ &=\frac{n \log (a+b x)-\log \left (e \left (\frac{a+b x}{c+d x}\right )^n\right )-n \log (c+d x)}{f x}+n \int \left (\frac{\log (a+b x)}{f x^2}-\frac{g \log (a+b x)}{f^2 x}+\frac{\left (g^2-f h+g h x\right ) \log (a+b x)}{f^2 \left (f+g x+h x^2\right )}\right ) \, dx-n \int \left (\frac{\log (c+d x)}{f x^2}-\frac{g \log (c+d x)}{f^2 x}+\frac{\left (g^2-f h+g h x\right ) \log (c+d x)}{f^2 \left (f+g x+h x^2\right )}\right ) \, dx-\frac{\left (n \log (a+b x)-\log \left (e \left (\frac{a+b x}{c+d x}\right )^n\right )-n \log (c+d x)\right ) \int \frac{-g-h x}{x \left (f+g x+h x^2\right )} \, dx}{f}\\ &=\frac{n \log (a+b x)-\log \left (e \left (\frac{a+b x}{c+d x}\right )^n\right )-n \log (c+d x)}{f x}+\frac{n \int \frac{\left (g^2-f h+g h x\right ) \log (a+b x)}{f+g x+h x^2} \, dx}{f^2}-\frac{n \int \frac{\left (g^2-f h+g h x\right ) \log (c+d x)}{f+g x+h x^2} \, dx}{f^2}+\frac{n \int \frac{\log (a+b x)}{x^2} \, dx}{f}-\frac{n \int \frac{\log (c+d x)}{x^2} \, dx}{f}-\frac{(g n) \int \frac{\log (a+b x)}{x} \, dx}{f^2}+\frac{(g n) \int \frac{\log (c+d x)}{x} \, dx}{f^2}-\frac{\left (n \log (a+b x)-\log \left (e \left (\frac{a+b x}{c+d x}\right )^n\right )-n \log (c+d x)\right ) \int \left (-\frac{g}{f x}+\frac{g^2-f h+g h x}{f \left (f+g x+h x^2\right )}\right ) \, dx}{f}\\ &=-\frac{n \log (a+b x)}{f x}-\frac{g n \log \left (-\frac{b x}{a}\right ) \log (a+b x)}{f^2}+\frac{n \log (c+d x)}{f x}+\frac{g n \log \left (-\frac{d x}{c}\right ) \log (c+d x)}{f^2}+\frac{n \log (a+b x)-\log \left (e \left (\frac{a+b x}{c+d x}\right )^n\right )-n \log (c+d x)}{f x}+\frac{g \log (x) \left (n \log (a+b x)-\log \left (e \left (\frac{a+b x}{c+d x}\right )^n\right )-n \log (c+d x)\right )}{f^2}+\frac{n \int \left (\frac{\left (g h+\frac{h \left (g^2-2 f h\right )}{\sqrt{g^2-4 f h}}\right ) \log (a+b x)}{g-\sqrt{g^2-4 f h}+2 h x}+\frac{\left (g h-\frac{h \left (g^2-2 f h\right )}{\sqrt{g^2-4 f h}}\right ) \log (a+b x)}{g+\sqrt{g^2-4 f h}+2 h x}\right ) \, dx}{f^2}-\frac{n \int \left (\frac{\left (g h+\frac{h \left (g^2-2 f h\right )}{\sqrt{g^2-4 f h}}\right ) \log (c+d x)}{g-\sqrt{g^2-4 f h}+2 h x}+\frac{\left (g h-\frac{h \left (g^2-2 f h\right )}{\sqrt{g^2-4 f h}}\right ) \log (c+d x)}{g+\sqrt{g^2-4 f h}+2 h x}\right ) \, dx}{f^2}+\frac{(b n) \int \frac{1}{x (a+b x)} \, dx}{f}-\frac{(d n) \int \frac{1}{x (c+d x)} \, dx}{f}+\frac{(b g n) \int \frac{\log \left (-\frac{b x}{a}\right )}{a+b x} \, dx}{f^2}-\frac{(d g n) \int \frac{\log \left (-\frac{d x}{c}\right )}{c+d x} \, dx}{f^2}-\frac{\left (n \log (a+b x)-\log \left (e \left (\frac{a+b x}{c+d x}\right )^n\right )-n \log (c+d x)\right ) \int \frac{g^2-f h+g h x}{f+g x+h x^2} \, dx}{f^2}\\ &=-\frac{n \log (a+b x)}{f x}-\frac{g n \log \left (-\frac{b x}{a}\right ) \log (a+b x)}{f^2}+\frac{n \log (c+d x)}{f x}+\frac{g n \log \left (-\frac{d x}{c}\right ) \log (c+d x)}{f^2}+\frac{n \log (a+b x)-\log \left (e \left (\frac{a+b x}{c+d x}\right )^n\right )-n \log (c+d x)}{f x}+\frac{g \log (x) \left (n \log (a+b x)-\log \left (e \left (\frac{a+b x}{c+d x}\right )^n\right )-n \log (c+d x)\right )}{f^2}-\frac{g n \text{Li}_2\left (1+\frac{b x}{a}\right )}{f^2}+\frac{g n \text{Li}_2\left (1+\frac{d x}{c}\right )}{f^2}+\frac{(b n) \int \frac{1}{x} \, dx}{a f}-\frac{\left (b^2 n\right ) \int \frac{1}{a+b x} \, dx}{a f}-\frac{(d n) \int \frac{1}{x} \, dx}{c f}+\frac{\left (d^2 n\right ) \int \frac{1}{c+d x} \, dx}{c f}+\frac{\left (h \left (g-\frac{g^2-2 f h}{\sqrt{g^2-4 f h}}\right ) n\right ) \int \frac{\log (a+b x)}{g+\sqrt{g^2-4 f h}+2 h x} \, dx}{f^2}-\frac{\left (h \left (g-\frac{g^2-2 f h}{\sqrt{g^2-4 f h}}\right ) n\right ) \int \frac{\log (c+d x)}{g+\sqrt{g^2-4 f h}+2 h x} \, dx}{f^2}+\frac{\left (h \left (g+\frac{g^2-2 f h}{\sqrt{g^2-4 f h}}\right ) n\right ) \int \frac{\log (a+b x)}{g-\sqrt{g^2-4 f h}+2 h x} \, dx}{f^2}-\frac{\left (h \left (g+\frac{g^2-2 f h}{\sqrt{g^2-4 f h}}\right ) n\right ) \int \frac{\log (c+d x)}{g-\sqrt{g^2-4 f h}+2 h x} \, dx}{f^2}-\frac{\left (g \left (n \log (a+b x)-\log \left (e \left (\frac{a+b x}{c+d x}\right )^n\right )-n \log (c+d x)\right )\right ) \int \frac{g+2 h x}{f+g x+h x^2} \, dx}{2 f^2}-\frac{\left (\left (g^2-2 f h\right ) \left (n \log (a+b x)-\log \left (e \left (\frac{a+b x}{c+d x}\right )^n\right )-n \log (c+d x)\right )\right ) \int \frac{1}{f+g x+h x^2} \, dx}{2 f^2}\\ &=\frac{b n \log (x)}{a f}-\frac{d n \log (x)}{c f}-\frac{b n \log (a+b x)}{a f}-\frac{n \log (a+b x)}{f x}-\frac{g n \log \left (-\frac{b x}{a}\right ) \log (a+b x)}{f^2}+\frac{d n \log (c+d x)}{c f}+\frac{n \log (c+d x)}{f x}+\frac{g n \log \left (-\frac{d x}{c}\right ) \log (c+d x)}{f^2}+\frac{n \log (a+b x)-\log \left (e \left (\frac{a+b x}{c+d x}\right )^n\right )-n \log (c+d x)}{f x}+\frac{g \log (x) \left (n \log (a+b x)-\log \left (e \left (\frac{a+b x}{c+d x}\right )^n\right )-n \log (c+d x)\right )}{f^2}+\frac{\left (g+\frac{g^2-2 f h}{\sqrt{g^2-4 f h}}\right ) n \log (a+b x) \log \left (-\frac{b \left (g-\sqrt{g^2-4 f h}+2 h x\right )}{2 a h-b \left (g-\sqrt{g^2-4 f h}\right )}\right )}{2 f^2}-\frac{\left (g+\frac{g^2-2 f h}{\sqrt{g^2-4 f h}}\right ) n \log (c+d x) \log \left (-\frac{d \left (g-\sqrt{g^2-4 f h}+2 h x\right )}{2 c h-d \left (g-\sqrt{g^2-4 f h}\right )}\right )}{2 f^2}+\frac{\left (g-\frac{g^2-2 f h}{\sqrt{g^2-4 f h}}\right ) n \log (a+b x) \log \left (-\frac{b \left (g+\sqrt{g^2-4 f h}+2 h x\right )}{2 a h-b \left (g+\sqrt{g^2-4 f h}\right )}\right )}{2 f^2}-\frac{\left (g-\frac{g^2-2 f h}{\sqrt{g^2-4 f h}}\right ) n \log (c+d x) \log \left (-\frac{d \left (g+\sqrt{g^2-4 f h}+2 h x\right )}{2 c h-d \left (g+\sqrt{g^2-4 f h}\right )}\right )}{2 f^2}-\frac{g \left (n \log (a+b x)-\log \left (e \left (\frac{a+b x}{c+d x}\right )^n\right )-n \log (c+d x)\right ) \log \left (f+g x+h x^2\right )}{2 f^2}-\frac{g n \text{Li}_2\left (1+\frac{b x}{a}\right )}{f^2}+\frac{g n \text{Li}_2\left (1+\frac{d x}{c}\right )}{f^2}-\frac{\left (b \left (g-\frac{g^2-2 f h}{\sqrt{g^2-4 f h}}\right ) n\right ) \int \frac{\log \left (\frac{b \left (g+\sqrt{g^2-4 f h}+2 h x\right )}{-2 a h+b \left (g+\sqrt{g^2-4 f h}\right )}\right )}{a+b x} \, dx}{2 f^2}+\frac{\left (d \left (g-\frac{g^2-2 f h}{\sqrt{g^2-4 f h}}\right ) n\right ) \int \frac{\log \left (\frac{d \left (g+\sqrt{g^2-4 f h}+2 h x\right )}{-2 c h+d \left (g+\sqrt{g^2-4 f h}\right )}\right )}{c+d x} \, dx}{2 f^2}-\frac{\left (b \left (g+\frac{g^2-2 f h}{\sqrt{g^2-4 f h}}\right ) n\right ) \int \frac{\log \left (\frac{b \left (g-\sqrt{g^2-4 f h}+2 h x\right )}{-2 a h+b \left (g-\sqrt{g^2-4 f h}\right )}\right )}{a+b x} \, dx}{2 f^2}+\frac{\left (d \left (g+\frac{g^2-2 f h}{\sqrt{g^2-4 f h}}\right ) n\right ) \int \frac{\log \left (\frac{d \left (g-\sqrt{g^2-4 f h}+2 h x\right )}{-2 c h+d \left (g-\sqrt{g^2-4 f h}\right )}\right )}{c+d x} \, dx}{2 f^2}+\frac{\left (\left (g^2-2 f h\right ) \left (n \log (a+b x)-\log \left (e \left (\frac{a+b x}{c+d x}\right )^n\right )-n \log (c+d x)\right )\right ) \operatorname{Subst}\left (\int \frac{1}{g^2-4 f h-x^2} \, dx,x,g+2 h x\right )}{f^2}\\ &=\frac{b n \log (x)}{a f}-\frac{d n \log (x)}{c f}-\frac{b n \log (a+b x)}{a f}-\frac{n \log (a+b x)}{f x}-\frac{g n \log \left (-\frac{b x}{a}\right ) \log (a+b x)}{f^2}+\frac{d n \log (c+d x)}{c f}+\frac{n \log (c+d x)}{f x}+\frac{g n \log \left (-\frac{d x}{c}\right ) \log (c+d x)}{f^2}+\frac{n \log (a+b x)-\log \left (e \left (\frac{a+b x}{c+d x}\right )^n\right )-n \log (c+d x)}{f x}+\frac{\left (g^2-2 f h\right ) \tanh ^{-1}\left (\frac{g+2 h x}{\sqrt{g^2-4 f h}}\right ) \left (n \log (a+b x)-\log \left (e \left (\frac{a+b x}{c+d x}\right )^n\right )-n \log (c+d x)\right )}{f^2 \sqrt{g^2-4 f h}}+\frac{g \log (x) \left (n \log (a+b x)-\log \left (e \left (\frac{a+b x}{c+d x}\right )^n\right )-n \log (c+d x)\right )}{f^2}+\frac{\left (g+\frac{g^2-2 f h}{\sqrt{g^2-4 f h}}\right ) n \log (a+b x) \log \left (-\frac{b \left (g-\sqrt{g^2-4 f h}+2 h x\right )}{2 a h-b \left (g-\sqrt{g^2-4 f h}\right )}\right )}{2 f^2}-\frac{\left (g+\frac{g^2-2 f h}{\sqrt{g^2-4 f h}}\right ) n \log (c+d x) \log \left (-\frac{d \left (g-\sqrt{g^2-4 f h}+2 h x\right )}{2 c h-d \left (g-\sqrt{g^2-4 f h}\right )}\right )}{2 f^2}+\frac{\left (g-\frac{g^2-2 f h}{\sqrt{g^2-4 f h}}\right ) n \log (a+b x) \log \left (-\frac{b \left (g+\sqrt{g^2-4 f h}+2 h x\right )}{2 a h-b \left (g+\sqrt{g^2-4 f h}\right )}\right )}{2 f^2}-\frac{\left (g-\frac{g^2-2 f h}{\sqrt{g^2-4 f h}}\right ) n \log (c+d x) \log \left (-\frac{d \left (g+\sqrt{g^2-4 f h}+2 h x\right )}{2 c h-d \left (g+\sqrt{g^2-4 f h}\right )}\right )}{2 f^2}-\frac{g \left (n \log (a+b x)-\log \left (e \left (\frac{a+b x}{c+d x}\right )^n\right )-n \log (c+d x)\right ) \log \left (f+g x+h x^2\right )}{2 f^2}-\frac{g n \text{Li}_2\left (1+\frac{b x}{a}\right )}{f^2}+\frac{g n \text{Li}_2\left (1+\frac{d x}{c}\right )}{f^2}-\frac{\left (\left (g-\frac{g^2-2 f h}{\sqrt{g^2-4 f h}}\right ) n\right ) \operatorname{Subst}\left (\int \frac{\log \left (1+\frac{2 h x}{-2 a h+b \left (g+\sqrt{g^2-4 f h}\right )}\right )}{x} \, dx,x,a+b x\right )}{2 f^2}+\frac{\left (\left (g-\frac{g^2-2 f h}{\sqrt{g^2-4 f h}}\right ) n\right ) \operatorname{Subst}\left (\int \frac{\log \left (1+\frac{2 h x}{-2 c h+d \left (g+\sqrt{g^2-4 f h}\right )}\right )}{x} \, dx,x,c+d x\right )}{2 f^2}-\frac{\left (\left (g+\frac{g^2-2 f h}{\sqrt{g^2-4 f h}}\right ) n\right ) \operatorname{Subst}\left (\int \frac{\log \left (1+\frac{2 h x}{-2 a h+b \left (g-\sqrt{g^2-4 f h}\right )}\right )}{x} \, dx,x,a+b x\right )}{2 f^2}+\frac{\left (\left (g+\frac{g^2-2 f h}{\sqrt{g^2-4 f h}}\right ) n\right ) \operatorname{Subst}\left (\int \frac{\log \left (1+\frac{2 h x}{-2 c h+d \left (g-\sqrt{g^2-4 f h}\right )}\right )}{x} \, dx,x,c+d x\right )}{2 f^2}\\ &=\frac{b n \log (x)}{a f}-\frac{d n \log (x)}{c f}-\frac{b n \log (a+b x)}{a f}-\frac{n \log (a+b x)}{f x}-\frac{g n \log \left (-\frac{b x}{a}\right ) \log (a+b x)}{f^2}+\frac{d n \log (c+d x)}{c f}+\frac{n \log (c+d x)}{f x}+\frac{g n \log \left (-\frac{d x}{c}\right ) \log (c+d x)}{f^2}+\frac{n \log (a+b x)-\log \left (e \left (\frac{a+b x}{c+d x}\right )^n\right )-n \log (c+d x)}{f x}+\frac{\left (g^2-2 f h\right ) \tanh ^{-1}\left (\frac{g+2 h x}{\sqrt{g^2-4 f h}}\right ) \left (n \log (a+b x)-\log \left (e \left (\frac{a+b x}{c+d x}\right )^n\right )-n \log (c+d x)\right )}{f^2 \sqrt{g^2-4 f h}}+\frac{g \log (x) \left (n \log (a+b x)-\log \left (e \left (\frac{a+b x}{c+d x}\right )^n\right )-n \log (c+d x)\right )}{f^2}+\frac{\left (g+\frac{g^2-2 f h}{\sqrt{g^2-4 f h}}\right ) n \log (a+b x) \log \left (-\frac{b \left (g-\sqrt{g^2-4 f h}+2 h x\right )}{2 a h-b \left (g-\sqrt{g^2-4 f h}\right )}\right )}{2 f^2}-\frac{\left (g+\frac{g^2-2 f h}{\sqrt{g^2-4 f h}}\right ) n \log (c+d x) \log \left (-\frac{d \left (g-\sqrt{g^2-4 f h}+2 h x\right )}{2 c h-d \left (g-\sqrt{g^2-4 f h}\right )}\right )}{2 f^2}+\frac{\left (g-\frac{g^2-2 f h}{\sqrt{g^2-4 f h}}\right ) n \log (a+b x) \log \left (-\frac{b \left (g+\sqrt{g^2-4 f h}+2 h x\right )}{2 a h-b \left (g+\sqrt{g^2-4 f h}\right )}\right )}{2 f^2}-\frac{\left (g-\frac{g^2-2 f h}{\sqrt{g^2-4 f h}}\right ) n \log (c+d x) \log \left (-\frac{d \left (g+\sqrt{g^2-4 f h}+2 h x\right )}{2 c h-d \left (g+\sqrt{g^2-4 f h}\right )}\right )}{2 f^2}-\frac{g \left (n \log (a+b x)-\log \left (e \left (\frac{a+b x}{c+d x}\right )^n\right )-n \log (c+d x)\right ) \log \left (f+g x+h x^2\right )}{2 f^2}+\frac{\left (g+\frac{g^2-2 f h}{\sqrt{g^2-4 f h}}\right ) n \text{Li}_2\left (\frac{2 h (a+b x)}{2 a h-b \left (g-\sqrt{g^2-4 f h}\right )}\right )}{2 f^2}+\frac{\left (g-\frac{g^2-2 f h}{\sqrt{g^2-4 f h}}\right ) n \text{Li}_2\left (\frac{2 h (a+b x)}{2 a h-b \left (g+\sqrt{g^2-4 f h}\right )}\right )}{2 f^2}-\frac{g n \text{Li}_2\left (1+\frac{b x}{a}\right )}{f^2}-\frac{\left (g+\frac{g^2-2 f h}{\sqrt{g^2-4 f h}}\right ) n \text{Li}_2\left (\frac{2 h (c+d x)}{2 c h-d \left (g-\sqrt{g^2-4 f h}\right )}\right )}{2 f^2}-\frac{\left (g-\frac{g^2-2 f h}{\sqrt{g^2-4 f h}}\right ) n \text{Li}_2\left (\frac{2 h (c+d x)}{2 c h-d \left (g+\sqrt{g^2-4 f h}\right )}\right )}{2 f^2}+\frac{g n \text{Li}_2\left (1+\frac{d x}{c}\right )}{f^2}\\ \end{align*}
Mathematica [A] time = 0.8248, size = 721, normalized size = 0.72 \[ \frac{-\frac{n \left (g \sqrt{g^2-4 f h}-2 f h+g^2\right ) \left (\text{PolyLog}\left (2,\frac{b \left (\sqrt{g^2-4 f h}-g-2 h x\right )}{2 a h+b \sqrt{g^2-4 f h}+b (-g)}\right )-\text{PolyLog}\left (2,\frac{d \left (\sqrt{g^2-4 f h}-g-2 h x\right )}{2 c h+d \left (\sqrt{g^2-4 f h}-g\right )}\right )+\log \left (-\sqrt{g^2-4 f h}+g+2 h x\right ) \left (\log \left (\frac{2 h (a+b x)}{2 a h+b \sqrt{g^2-4 f h}+b (-g)}\right )-\log \left (\frac{2 h (c+d x)}{2 c h+d \sqrt{g^2-4 f h}+d (-g)}\right )\right )\right )}{\sqrt{g^2-4 f h}}+\frac{n \left (-g \sqrt{g^2-4 f h}-2 f h+g^2\right ) \left (\text{PolyLog}\left (2,\frac{b \left (\sqrt{g^2-4 f h}+g+2 h x\right )}{b \left (\sqrt{g^2-4 f h}+g\right )-2 a h}\right )-\text{PolyLog}\left (2,\frac{d \left (\sqrt{g^2-4 f h}+g+2 h x\right )}{d \left (\sqrt{g^2-4 f h}+g\right )-2 c h}\right )+\log \left (\sqrt{g^2-4 f h}+g+2 h x\right ) \left (\log \left (\frac{2 h (a+b x)}{2 a h-b \left (\sqrt{g^2-4 f h}+g\right )}\right )-\log \left (\frac{2 h (c+d x)}{2 c h-d \left (\sqrt{g^2-4 f h}+g\right )}\right )\right )\right )}{\sqrt{g^2-4 f h}}+2 g n \left (\text{PolyLog}\left (2,-\frac{b x}{a}\right )-\text{PolyLog}\left (2,-\frac{d x}{c}\right )+\log (x) \left (\log \left (\frac{b x}{a}+1\right )-\log \left (\frac{d x}{c}+1\right )\right )\right )+\left (\frac{g^2-2 f h}{\sqrt{g^2-4 f h}}+g\right ) \log \left (-\sqrt{g^2-4 f h}+g+2 h x\right ) \log \left (e \left (\frac{a+b x}{c+d x}\right )^n\right )+\left (\frac{2 f h-g^2}{\sqrt{g^2-4 f h}}+g\right ) \log \left (\sqrt{g^2-4 f h}+g+2 h x\right ) \log \left (e \left (\frac{a+b x}{c+d x}\right )^n\right )-\frac{2 f \log \left (e \left (\frac{a+b x}{c+d x}\right )^n\right )}{x}-2 g \log (x) \log \left (e \left (\frac{a+b x}{c+d x}\right )^n\right )+\frac{2 f n (\log (x) (b c-a d)-b c \log (a+b x)+a d \log (c+d x))}{a c}}{2 f^2} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [F] time = 1.398, size = 0, normalized size = 0. \begin{align*} \int{\frac{1}{{x}^{2} \left ( h{x}^{2}+gx+f \right ) }\ln \left ( e \left ({\frac{bx+a}{dx+c}} \right ) ^{n} \right ) }\, dx \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F(-2)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Exception raised: ValueError} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [F] time = 0., size = 0, normalized size = 0. \begin{align*}{\rm integral}\left (\frac{\log \left (e \left (\frac{b x + a}{d x + c}\right )^{n}\right )}{h x^{4} + g x^{3} + f x^{2}}, x\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-1)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Timed out} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{\log \left (e \left (\frac{b x + a}{d x + c}\right )^{n}\right )}{{\left (h x^{2} + g x + f\right )} x^{2}}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]